package com.tc.jpa.controller;

import com.tc.jpa.service.Test1Service;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Auther: tianchao
 * @Date: 2021/11/12 20:30
 * @Description:
 */
@RestController
@Slf4j
public class Test1Controller {
    public Test1Controller(){
        log.info("Test1Controller construct");
    }
    @Autowired
    private Test1Service test1Service;
    @GetMapping("/test1")
    public String test1(){
        return test1Service.test1();
    }
}
